package org.paradise.dms.services;

import java.util.List;

import org.paradise.dms.pojo.MaintainReport;
import org.springframework.stereotype.Service;

import com.dheaven.framework.dao.DaoException;

/**
 * 
 * Description: Copyright (c) 2008-2009 Neo. All Rights Reserved.
 * 
 * @version 1.0 Mar 19, 2009 10:47:40 AM 李萌（neolimeng@gmail.com）created
 */

@Service
public interface MainReportService {
	/**
	 * 
	 * Description: 插入一条维修记录
	 * 
	 * @Version1.0 Mar 19, 2009 10:10:12 PM 李萌（neolimeng@gmail.com）创建
	 * @param maintainreport
	 * @return
	 */
	public boolean insertMainReport(MaintainReport maintainreport);

	/**
	 * 
	 * Description: 删除一条维修记录
	 * 
	 * @Version1.0 Mar 19, 2009 11:11:13 AM 李萌（neolimeng@gmail.com）创建
	 * @param maintainreportid
	 * @return
	 */
	public boolean deleteMainReport(int maintainreportid);

	/**
	 * 
	 * Description: 更新一条维修记录
	 * 
	 * @Version1.0 Mar 19, 2009 10:10:28 PM 李萌（neolimeng@gmail.com）创建
	 * @param maintaireport
	 * @return
	 */
	public boolean updateMainReport(MaintainReport maintainreport);

	/**
	 * 
	 * Description: 取得一条维修记录
	 * 
	 * @Version1.0 Mar 19, 2009 11:12:01 AM 李萌（neolimeng@gmail.com）创建
	 * @param maintainreportid
	 * @return
	 * @throws DaoException
	 */
	public List<MaintainReport> findMainReport(int maintainreportid) throws DaoException;

	/**
	 * 
	 * Description: 取得所有维修记录
	 * 
	 * @Version1.0 Mar 19, 2009 11:12:21 AM 李萌（neolimeng@gmail.com）创建
	 * @return
	 * @throws DaoException
	 */
	public List<MaintainReport> findAllMainReports() throws DaoException;
	
	boolean setFinished(int mrid);
	
	int getAllRows();
	
	List<MaintainReport> listAllMaintainReports(int pageSize,int startRow);

}
